self.addEventListener('message', function(e) {
    var hwc = navigator.hardwareConcurrency;
    console.log('I am shared worker!!!');
    console.log('Got msg from main thread : ' + e.data);
    self.postMessage(hwc);
    console.log(navigator);
    console.log(typeof navigator.language);
    console.log('navigator.language: ' + navigator.language);
    console.log('navigator.onLine : ' + navigator.onLine);
    console.log(typeof navigator.languages);
    console.log("Wrkr3 " + navigator.languages.length);
    for(var i = 0; i < navigator.languages.length; i++)
        console.log("SharedWrkr:lang[" + i + "]-" + navigator.languages[i]);
    }, false);